package gmusic.command;

import gmusic.ma.bo.DemandeChargement;
import gmusic.ma.services.impl.MetalArchivesServicesImpl;

import javax.servlet.http.HttpServletRequest;

public class AjouterArtisteMA implements Command {

	// private final static Logger log =
	// Logger.getLogger(AfficherArtistsMA.class);

	public String execute(HttpServletRequest req) throws Exception {

		int amaid = Integer.parseInt(req.getParameter("amaid"));
		MetalArchivesServicesImpl.getInstance().persist(
				new DemandeChargement(amaid, DemandeChargement.SOURCE_NEW));

		return new AfficherDemandesChargement().execute(req);
	}
}
